package com.levenx.vo.support;

import com.levenx.vo.Result;
import org.springframework.stereotype.Service;

@Service
public class FileResult implements Result {

    private String src;

    private String name;

    public FileResult() {
    }

    public FileResult(String src, String name) {
        this.src = src;
        this.name = name;
    }

    @Override
    public boolean isSuccess() {
        return null != src &&  null != name;
    }

    @Override
    public int status() {
        return 0;
    }

    @Override
    public Result<?> ofStatus(int status, String massage) {
        return null;
    }


    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
